from distutils.core import setup
import py2exe, sys, os

home = os.path.split(os.getcwd())[0]

sqla_dir = os.path.join(home,'sqlalchemy','lib')

sys.path = [sqla_dir] + sys.path 

#sys.argv.append('py2exe')

#Mydata_files = []
#for files in os.listdir('c:\home\slzatz\mylistmanager\\bitmaps'):
#    f1 = 'c:\home\slzatz\listmanager\\bitmaps'+files
#    if os.path.isfile(f1):
#        f2 = 'images',[f1]
#        Mydata_files.append(f2)

#for files in os.listdir('c:\home\slzatz\mylistmanager\\bitmaps\\folder_icons'):
#    f1 = 'c:\home\slzatz\listmanager\\bitmaps\\folder_icons'+files
#    if os.path.isfile(f1):
#        f2 = 'images',[f1]
#        Mydata_files.append(f2)

#DATA=[('imageformats',['C:\\Python27/Lib/site-packages/PyQt4/plugins/imageformats/qjpeg4.dll',
#    'C:\\Python27/Lib/site-packages/PyQt4/plugins/imageformats/qgif4.dll',
#    'C:\\Python27/Lib/site-packages/PyQt4/plugins/imageformats/qico4.dll',
#    'C:\\Python27/Lib/site-packages/PyQt4/plugins/imageformats/qmng4.dll',
#    'C:\\Python27/Lib/site-packages/PyQt4/plugins/imageformats/qsvg4.dll',
#    'C:\\Python27/Lib/site-packages/PyQt4/plugins/imageformats/qtiff4.dll'
#    ])]

setup(
    options = {'py2exe': {'bundle_files': 1, 'compressed': True,"includes":["sip"]}},
    #data_files = Mydata_files,
    windows = [{'script': "listmanager_aws.py"}],
    zipfile = None,

    )